package com.hzw.saas.service.product.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户余额表
 * </p>
 *
 * @author zzl
 * @since 2021-01-21
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("tb_user_balance")
public class UserBalance implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户钱包ID
     */
    @TableId(type = IdType.INPUT)
    private String balanceId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 货币
     */
    private String currency;

    /**
     * 余额
     */
    private Double balance;

    /**
     * 加密余额
     */
    private String balanceEncrypt;

    /**
     * 密钥，暂定
     */
    private String publicKey;


}
